﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Publisher.aspx.cs" Inherits="QLKDS_WEB.Publisher" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="page-title">
	    <div>
	        <h1><i class="icon-file-alt"></i> Danh mục</h1>
	    </div>
	</div>
	<div id="breadcrumbs">
	    <ul class="breadcrumb">
	        <li>
	            <i class="icon-home"></i>
	            <a href="#">Trang chủ</a>
	            <span class="divider"><i class="icon-angle-right"></i></span>
	        </li>
	        <li class="active">Publishers</li>
	    </ul>
	</div>
    <div class="row">
	    <div class="col-md-12">
	        <div class="box">
	            <div class="box-title">
	                <h3><i class="icon-reorder"></i> Publisher</h3>
	                <div class="box-tool">
	                    <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
	                    <a data-action="close" href="#"><i class="icon-remove"></i></a> 
	                </div>
	            </div>
	            <div class="box-content">
	                <div id="publisher">
                        <div class="form-group">
                            <asp:Label ID="Label1" runat="server" class="col-sm-3 col-lg-2 control-label" Text="Publisher"></asp:Label>
                            <div class="col-sm-6 col-lg-4 controls">
                                <asp:TextBox runat="server" name="txtName" ID="txtName" class="form-control" data-rule-required="true" data-rule-minlength="3"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-group">
                            <asp:Label ID="Label2" runat="server" class="col-sm-3 col-lg-2 control-label" Text="Status"></asp:Label>
                            <div class="col-sm-6 col-lg-4 controls">
                                <asp:TextBox runat="server" name="Status" ID="txtStatus" class="form-control" data-rule-required="true" data-rule-number="true"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-group">
                            <asp:Label ID="Label3" runat="server" class="col-sm-3 col-lg-2 control-label" Text="Description"></asp:Label>
                            <div class="col-sm-6 col-lg-4 controls">
                                <asp:TextBox runat="server" ID="txtDescription" name="Description" TextMode="MultiLine" class="form-control" data-rule-required="true" data-rule-minlength="3"></asp:TextBox>
                            </div>
                        </div>
                        <div class="form-group">
			                <div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2">
                                <asp:Button runat="server" Text="Add" ID="Add" OnClick="AddNew_click" CssClass="btn btn-primary" />
                                <asp:Button runat="server" Text="Edit" ID="Edit" OnClick="Edit_click" CssClass="btn btn-primary" Enabled="false" />
                                <asp:Button runat="server" Text="Refresh" ID="btnRefresh" OnClick="refresh_click" CssClass="btn btn-primary" />
                                <asp:Button runat="server" Text="Cancel" ID="btCancel" OnClick="Cancel_click" CssClass="btn"  />
			                </div>
		                </div>
                         <div>
                             <asp:gridview id="gvPublisher" runat="server" autogeneratecolumns="False" 
                                backcolor="White" bordercolor="#3366CC" borderstyle="None" borderwidth="1px" 
                                cellpadding="4" allowpaging="True" width="100%" datakeynames="id" OnSelectedIndexChanged="gvPublisher_SelectedIndexChanged" OnRowDeleting="gvPublisher_RowDeleting" >
                                <columns>
                                    <asp:CommandField ShowSelectButton="True" HeaderText="Select" SelectText="Select">
                                    <HeaderStyle Width="25px" />
                                    </asp:CommandField>
                                    <asp:CommandField ShowDeleteButton="true" HeaderText="Delete" DeleteText="Delete" >
                                    <HeaderStyle Width="25px" />
                                    </asp:CommandField>
                                    <asp:boundfield datafield="id" headertext="ID" insertvisible="false" readonly="true" sortexpression="id" >
                                    <HeaderStyle Width="20px" />
                                    <ItemStyle HorizontalAlign="Center" />
                                    </asp:boundfield>
                                    <asp:boundfield datafield="name" headertext="Name" sortexpression="name" >
                                    <HeaderStyle Width="200px" />
                                    </asp:boundfield>
                                    <asp:boundfield datafield="status" headertext="Status" sortexpression="status" >
                                    <HeaderStyle Width="100px" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:boundfield>
                                    <asp:boundfield datafield="description" headertext="Description" sortexpression="description" />
                                </columns>
                            </asp:gridview>
                         </div>
                    </div>
	            </div>
	        </div>
	    </div>
	</div>
    
</asp:Content>
 